Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
How to force an html form accept only inputs with value greater then ""?

my form:

<form action='assetSearch.php' method='GET'>
      <input type='text' name='city' value="NewYork">
      <input type='text' name='street' value="">
      <input type='submit' name='submitBtn'>
</form>

after submitting, my url looks like that:

http://localhost/www/Self%20Projects/public/assetSearch.php?city=NewYork&street=

and this how I expect my url to look like:

http://localhost/www/Self%20Projects/public/assetSearch.php?city=NewYork

the input fields does not have to be required. basically I just don't want to get an empty values to _GET array, and I want to make the url look cleaner.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!